
{assign var="module" value=$catalog->getModule($type)}
{assign var="split" value=$module->getProductsSplit(1, $show)}

{if $split->getTotalResults() > 0}
	<h3>{$header}
		{if $split->getTotalPages() > 1}
			<small><a href="{$smarty.const.FILENAME_CATALOG}?view={$type}">{#HEADING_PRODUCTS_MORE#}</a></small>
		{/if}
	</h3>
	<ul class="products-inline">
		{foreach item="product" from=$split->getResults(1, $show)}
			{strip}
			<li>
				<a href="{$smarty.const.FILENAME_PRODUCT_INFO}?products_id={$product->getId()}">
					<div class="img">
						{if $product->hasImage()}
							{html_image file=$product->getImageSrc() alt="*"}
						{else}
							{html_image file="" alt="Image not available"}
						{/if}
					</div>
					<div class="title">
						{$product->getName()}
					</div>
					<div class="price">
						{$product->getPrice()}
					</div>
				</a>
			</li>
			{/strip}
		{/foreach}
	</ul>
	<br class="endbox" />
{/if}

